import { Get, Controller, Post } from '@nestjs/common';
import { UserService2 } from './user.service';
@Controller('user')
export class UserController {
  constructor(private readonly userService: UserService2) {}
  @Get('/')
  findOne() {
    return this.userService.getUser('/user');
  }

  @Post('/allList')
  findAll() {
    return [
      {
        name: 'zs',
        age: 23,
        gender: 'male',
      },
      {
        name: 'ls',
        age: 24,
        gender: 'female',
      },
    ];
  }
}
